package Peer;

import FileStructure.FileHandler;
import java.io.IOException;

/**
 *
 * @author user
 */
public class ShareFile {
    //share file = jadi seeder
    //buat file torrent
    //lakukan request ke tracker
    //public ClientRequest cr;
    public FileHandler fh;

    public ShareFile(String sharedDir, String sharedFileName, String torrentDir, String announceURL) throws IOException{
        this.fh.createTorrent(sharedDir, sharedFileName, torrentDir, announceURL);
        //this.cr.file_name = this.meta.file_name;
        //this.cr.startRequest();
    }

    public void updateRequest(int interval){
       // this.cr.updateRequest(interval);
    }

}
